//将小写字母转大写字母,字符和字符串都可以
let str = "a";
let string = "abc";
let char = "A";
console.log(str.toUpperCase());
console.log(string.toUpperCase());
console.log(char.toUpperCase());
